<?php use Phalcon\Tag; ?>

<?=$this->getContent(); ?>

<table width="100%">
    <tr>
        <td align="left">
            <?=$this->tag->linkTo(array("a/index", "Go Back")); ?>
        </td>
        <td align="right">
            <?=$this->tag->linkTo(array("a/new", "Create ")); ?>
        </td>
    </tr>
</table>

<table class="browse" align="center">
    <thead>
        <tr>
            <th>A</th>
            <th>B</th>
         </tr>
    </thead>
    <tbody>
    <?php foreach ($page->items as $a) { ?>
        <tr>
            <td><?=$a->a ?></td>
            <td><?=$a->b ?></td>
            <td><?=$this->tag->linkTo(array("a/edit/" . $a->a, "Edit")); ?></td>
            <td><?=$this->tag->linkTo(array("a/delete/" . $a->a, "Delete")); ?></td>
        </tr>
    <?php } ?>
        
    </tbody>

</table>
<?=$this->partial('common/paginator',array('uriTemplate'=>'a/search?page={pn}'))?>